package ch2;

public class Shuxue {

	public static void main(String[] args) {
		// 演示数学 + - * / % ++ --
		int a = 27, b = 7;// 同时定义多个变量，用逗号隔开。
		int he = a + b;
		int cj = a * b;
		System.out.println("a+b=" + he + ",a*b=" + cj);
		int yu = a % b;
		System.out.println("a%b=" + yu);
		int shang = a / b;
		System.out.println("a/b=" + shang);
		a++;// a=a+1 自加
		System.out.println(a);
		b--;// 自减
		System.out.println(b);

		b *= 20;// b=b*20
		a %= 5;
		System.out.println("a=" + a);
	}

}
